package com.china08.yxyapi.entity.mg.scoreport;

import java.util.List;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.china08.yxyapi.entity.mg.MongoBaseEntityNoId;

/**
 * @author Richard.Wang 考试
 */
@SuppressWarnings("serial")
@Document(collection = "yxy.tea.score.report.exam.student")
public class ExamStudent extends MongoBaseEntityNoId {

    @Id
    private String id;

    /** */
    @DBRef(lazy = true)
    private Exam exam;

    @Field(value = "student_id")
    private String studentId;

    @Field(value = "student_nick")
    private String studentNick;

    /** 班级 */
    @Field(value = "class_id")
    private String classId;// 班级id

    @Field(value = "class_name")
    private String className;// 班级名称

    /**
     * 学生本次考试成绩总分数
     */
    @Field(value = "stu_total_score")
    private Double stuTotalScore;

    /**
     * 学生每道题的分数
     */
    @Field(value = "stu_ques_score")
    private List<StuQuesScore> stuQuesScores;

    public class StuQuesScore {
        public Integer section;// 大题号
        public Integer no;// 小题号
        public Integer order_num;// 序列号
        public Integer score;// 分数
        public Double stu_score;// 学生本题的分数
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Exam getExam() {
        return exam;
    }

    public void setExam(Exam exam) {
        this.exam = exam;
    }

    public String getStudentId() {
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public String getStudentNick() {
        return studentNick;
    }

    public void setStudentNick(String studentNick) {
        this.studentNick = studentNick;
    }

    public String getClassId() {
        return classId;
    }

    public void setClassId(String classId) {
        this.classId = classId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public Double getStuTotalScore() {
        return stuTotalScore;
    }

    public void setStuTotalScore(Double stuTotalScore) {
        this.stuTotalScore = stuTotalScore;
    }

    public List<StuQuesScore> getStuQuesScores() {
        return stuQuesScores;
    }

    public void setStuQuesScores(List<StuQuesScore> stuQuesScores) {
        this.stuQuesScores = stuQuesScores;
    }

}
